package com.offcn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class FirstThymeleafController {
    @GetMapping("indexPage")
    public String indexPage(Model model){
        String s = "anfjh";
        //根据sww取s
        model.addAttribute("sww",s);
        return "index";
    }
}
